home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Form / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-12-16  |  4.2 KB  |  139 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. #ifndef FWMENUS_K
  14. #include "FWMenus.k"
  15. #endif
  16.  
  17. //-------------------------------------------------------------------------------------
  18. // Uncomment the following three lines, and define them appropriately!!
  19. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  20. // to be 1.  Otherwise define it to be 0.
  21. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  22. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  23. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  24. // define it to be zero.  Note that if your part is scriptable is must support
  25. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  26.  
  27. #define FW_SUPPORTS_EMBEDDING     0
  28. #define FW_SUPPORTS_EXTENSIONS     0
  29. #define FW_SUPPORTS_SCRIPTING     0
  30. #define FW_SUPPORTS_LINKING     0
  31.  
  32. //-------------------------------------------------------------------------------------
  33. // Use the following flags to determine which view resources will be used by Form
  34.  
  35. #define FW_ODFRC_VIEWS            0
  36. #define FW_PPOB_VIEWS            1
  37.  
  38. //-------------------------------------------------------------------------------------
  39. // Presentations
  40. #define kMainPresentation                "ODF:Presentation:Form"
  41. #define kPrintPresentation                "ODF:Presentation:PrintForm"
  42. #define kPasswordDialogPresentation        "ODF:Presentation:Form:PasswordDialog"
  43. #define kInvalidDialogPresentation        "ODF:Presentation:Form:InvalidDialog"
  44.  
  45. //-------------------------------------------------------------------------------------
  46. // Menus
  47. #define kMenuBar                 1024
  48.  
  49. #define  cResetFormCommand        FW_kFirstUserCommandID
  50.  
  51. #if FW_PPOB_VIEWS
  52. #define  cReloadPPobViews        cResetFormCommand + 1
  53. #endif
  54.  
  55. //-------------------------------------------------------------------------------------
  56. // Icons ID
  57. #define kViewAsIconID            128
  58. #define kAboutIconID            130
  59.  
  60. //-------------------------------------------------------------------------------------
  61. // About
  62. #define kAbout                     1024
  63.  
  64. //-------------------------------------------------------------------------------------
  65. // Document Window
  66. #define kDocumentWindowID        1024
  67.  
  68. //-------------------------------------------------------------------------------------
  69. // Part Info 
  70. #define kPartInfoID             1024
  71.  
  72. //-------------------------------------------------------------------------------------
  73. //     Views
  74. // Form frame
  75. #define kFormContentView        1000
  76. #define kRootFormView            1001
  77. #define kEmbeddedFormView        1002
  78. #define kPrintFormView            1003
  79. #define kOldFormView            1024
  80.  
  81. #define kHorzScrollBarID        'horz'
  82. #define kVertScrollBarID        'vert' 
  83. #define kGrowBoxID                 'grow'        
  84.  
  85. #define kFormViewID                100
  86.  
  87. #define kFirstNameEdViewID        101
  88. #define    kLastNameEdViewID        kFirstNameEdViewID + 1
  89. #define kMemberNameEdViewID        kLastNameEdViewID + 1
  90. #define kEMailEdViewID            kMemberNameEdViewID + 1
  91. #define kCommentsEdViewID        kEMailEdViewID + 1
  92.  
  93. #define  kEditHScrollBarID        108
  94. #define  kEditVScrollBarID        109
  95. #define  kSubscribeCheckID         110
  96. #define  kBrowseTimePopupID     111
  97. #define  kOnlineTimePopupID     112
  98.  
  99. #define kWordOfMouthRadioID     116
  100. #define kHyperLinkRadioID         117
  101. #define kMacTechRadioID         118
  102. #define kYesRadioID             119
  103. #define kNoRadioID                 120
  104. #define    kFirstRadioID            kWordOfMouthRadioID
  105.  
  106. #define  kSubscribeButtonID     123
  107. #define  kAddButtonID             124
  108. #define  kRemoveButtonID         125
  109. #define  kPlatformListBoxID        130
  110.  
  111. // Password Dialog frame
  112. #define kPasswordDialog            1025
  113.  
  114. #define kOKButtonID             1
  115. #define kCancelButtonID         2
  116. #define kPasswordEditID         3
  117. #define kConfirmEditID             4
  118.  
  119. //     Radio-clusters constants
  120. #define kNumRadioClusters        2
  121. #define kNumRadioButtons        (kNoRadioID - kFirstRadioID + 1)
  122.  
  123. //-------------------------------------------------------------------------------------
  124. //     Mac-specific Resources
  125.  
  126. #ifdef FW_BUILD_MAC
  127.  
  128. // ODF Popups use Mac MENU resources for now
  129. #define kBrowseTimeMenuResID     1000
  130. #define kOnlineTimeMenuResID     1001
  131.  
  132. // Pictures used in CFormView class
  133. #define kFormPict1                130
  134. #define kFormPict2                131
  135.  
  136. #endif // FW_BUILD_MAC
  137.  
  138. #endif
  139.